﻿package com.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.entity.Filet;
import com.util.DBHelp;
import com.util.RowMapper;

public class FiletDao {
	DBHelp<Filet> db=new DBHelp<Filet>();
	
	private class FiletRowMapper implements RowMapper<Filet>{

		public Filet mapRow(ResultSet rs) throws SQLException {
			Filet f=new Filet();
			f.setCreateTime(rs.getString("createtime"));
			f.setFileName(rs.getString("filename"));
			f.setFolderid(rs.getInt("folderid"));
			f.setId(rs.getInt("id"));
			f.setName(rs.getString("name"));
			return f;
		}
		
	}
}
